<section class="title">
<?php if ($this->method == 'create'): ?>
	<h4><?php echo lang('stoepje_voucher_create_title'); ?></h4>
<?php else: ?>
	<h4><?php echo sprintf(lang('stoepje_voucher_edit_title'), $voucher->code); ?></h4>
<?php endif; ?>
</section>

<section class="item">
	
<?php echo form_open(uri_string(), 'class="crud"'); ?>
<div class="form_inputs" id="voucher-form">

	<fieldset>
	
		<ul>
			<li class="even">
				<label for="code"><?php echo lang('stoepje_voucher_code_title'); ?> <span>*</span></label>
				<div class="input"><?php echo form_input('code', htmlspecialchars_decode($voucher->code), 'maxlength="8" id="code"'); ?>
				<?php echo anchor('#', lang('stoepje_voucher_generate_code_title'), 'id="auto_generate"')?>
				</div>				
			</li>
			<li class="odd">
				<label for="prize_id"><?php echo lang('stoepje_voucher_prize_title'); ?></label>
				<div class="input">					
					<?php echo form_dropdown('prize_id',  $prizeList, $voucher->prize_id) ?>
				</div>
			</li>
			<li class="odd">
				<label for="news"><?php echo lang('stoepje_voucher_description_title'); ?></label>
				<br style="clear:both"/>
				<?php echo form_textarea(array('id' => 'description', 'name' => 'description', 'value' => $voucher->description, 'rows' => 30, 'class' => 'wysiwyg-advanced')); ?>
			</li>
			<li class="even">
				<div class="input">
				<?php echo form_checkbox('status', 1, $voucher->status, 'id="status-checkbox"')?><label for="status"><?php echo lang('stoepje_voucher_status_title'); ?></label>
				</div>
			</li>
		</ul>
	</fieldset>
</div>
<div class="buttons float-right padding-top">
<?php $this->load->view('admin/partials/buttons', array('buttons' => array('save', 'save_exit', 'cancel'))); ?>
</div>
<?php echo form_close(); ?>
</section>